import time
import pygame
#pip install pygame

#音乐路径
filePath = r"C:\Users\Acer\Desktop\刘宪华 (Henry) - 当你孤单你会想起谁.mp3"

#初始化
pygame.mixer.init()

#加载音乐
track = pygame.mixer.music.load(filePath)

#播放
pygame.mixer.music.play()
#
time.sleep(5)
#暂停
#pygame.mixer.music.pause()
#停止
pygame.mixer.music.stop()